#!/bin/bash

# Install zsh
brew install -y zsh git
wget https://gitee.com/l0n9/ohmyzsh/raw/master/tools/install.sh -O - | sh
chsh -s `which zsh`

# Config fonts
git clone https://gitee.com/l0n9/fonts.git
cd fonts $$ ./install.sh
sed -i "" 's/robbyrussell/agnoster/g' ~/.zshrc
source ~/.zshrc

# Config plugins
cd ~/.oh-my-zsh/custom/plugins
git clone https://gitee.com/l0n9/zsh-autosuggestions.git
git clone https://gitee.com/l0n9/zsh-syntax-highlighting.git


## vim ~/.zshrc
: <<EOF
plugins=(
  git
  wd
  zsh-syntax-highlighting
  zsh-autosuggestions
)

source $ZSH/oh-my-zsh.sh
EOF

## source ~/.zshrc